package com.xkstream.client.presenter.kt

import com.xkstream.client.base.BaseData
import com.xkstream.client.base.BasePresenter
import com.xkstream.client.base.BaseView
import com.xkstream.client.entity.kt.BlogListData

/**
 * Created by xiaoyi on 2017-11-4.
 */
interface MyZoneContract {
    interface Presenter : BasePresenter {
        fun getBlogList(params: Map<String, String>, isDelete: Boolean)
        fun blogUpVote(params: Map<String, String>)
        fun deleteBlog(params: Map<String, String>, index: Int)
        fun setZoneBg(params: Map<String, String>)
    }

    interface View : BaseView<Presenter> {
        fun showError(message: String)
        fun showBlogList(t: BaseData<BlogListData>?,isDelete: Boolean)
        fun showUpVoteResult(t: BaseData<Any?>)
        fun showDeleteResult(t: BaseData<Any?>, index: Int)
        fun showSetZoneBgResult(t: BaseData<Any?>)
    }
}